package com.example.micro.mysql.deadlock.bean;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author liubolun <liubolun@kuaishou.com>
 * Created on 2021-09-17
 */
@PropertySource(value = "classpath:person.yml", encoding = "UTF-8")
@Component
@ConfigurationProperties(prefix = "person")
public class Person {

    @Value("${maps}")
    private Map<String, Object> maps;

    @Value("${lists}")
    private List<Object> lists;


}
